//
//  CallNameCell.m
//  ConghuiEducation
//
//  Created by leo on 16/8/31.
//  Copyright © 2016年 sample. All rights reserved.
//

#import "CallNameCell.h"

@implementation CallNameCell
@synthesize callNameView0;
@synthesize callNameView1;
@synthesize callNameView2;


-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        self.callNameView0 = [[CallNameView alloc] initWithFrame:CGRectMake(5, 5, KScreenWidth/3.0-5, 100-7)];
        [callNameView0.layer setCornerRadius:3.0];
        [[self contentView] addSubview:callNameView0];
        
        self.callNameView1 = [[CallNameView alloc] initWithFrame:CGRectMake(KScreenWidth/3.0+5, 5, KScreenWidth/3.0-5, 100-7)];
        [callNameView1.layer setCornerRadius:3.0];
        [[self contentView] addSubview:callNameView1];
        
        self.callNameView2 = [[CallNameView alloc] initWithFrame:CGRectMake(KScreenWidth*2.0/3.0+5, 5, KScreenWidth/3.0-10, 100-7)];
        [callNameView2.layer setCornerRadius:3.0];
        [[self contentView] addSubview:callNameView2];
    }
    return self;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
